Optimal. Leaf size=149 \[ -\frac{\sqrt{c+d x} (2 b c-a d)}{a^2 (a+b x)}+\frac{\sqrt{c} (4 b c-3 a d) \tanh ^{-1}\left (\frac{\sqrt{c+d x}}{\sqrt{c}}\right )}{a^3}-\frac{\sqrt{b c-a d} (4 b c-a d) \tanh ^{-1}\left (\frac{\sqrt{b} \sqrt{c+d x}}{\sqrt{b c-a d}}\right )}{a^3 \sqrt{b}}-\frac{c \sqrt{c+d x}}{a x (a+b x)} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.195907, antiderivative size = 149, normalized size of antiderivative = 1., number of steps used = 7, number of rules used = 5, integrand size = 20, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.25, Rules used = {98, 151, 156, 63, 208} \[ -\frac{\sqrt{c+d x} (2 b c-a d)}{a^2 (a+b x)}+\frac{\sqrt{c} (4 b c-3 a d) \tanh ^{-1}\left (\frac{\sqrt{c+d x}}{\sqrt{c}}\right )}{a^3}-\frac{\sqrt{b c-a d} (4 b c-a d) \tanh ^{-1}\left (\frac{\sqrt{b} \sqrt{c+d x}}{\sqrt{b c-a d}}\right )}{a^3 \sqrt{b}}-\frac{c \sqrt{c+d x}}{a x (a+b x)} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 98
Rule 151
Rule 156
Rule 63
Rule 208
Rubi steps
\begin{align*} \int \frac{(c+d x)^{3/2}}{x^2 (a+b x)^2} \, dx &=-\frac{c \sqrt{c+d x}}{a x (a+b x)}-\frac{\int \frac{\frac{1}{2} c (4 b c-3 a d)+\frac{1}{2} d (3 b c-2 a d) x}{x (a+b x)^2 \sqrt{c+d x}} \, dx}{a}\\ &=-\frac{(2 b c-a d) \sqrt{c+d x}}{a^2 (a+b x)}-\frac{c \sqrt{c+d x}}{a x (a+b x)}-\frac{\int \frac{\frac{1}{2} c (4 b c-3 a d) (b c-a d)+\frac{1}{2} d (b c-a d) (2 b c-a d) x}{x (a+b x) \sqrt{c+d x}} \, dx}{a^2 (b c-a d)}\\ &=-\frac{(2 b c-a d) \sqrt{c+d x}}{a^2 (a+b x)}-\frac{c \sqrt{c+d x}}{a x (a+b x)}-\frac{(c (4 b c-3 a d)) \int \frac{1}{x \sqrt{c+d x}} \, dx}{2 a^3}+\frac{((b c-a d) (4 b c-a d)) \int \frac{1}{(a+b x) \sqrt{c+d x}} \, dx}{2 a^3}\\ &=-\frac{(2 b c-a d) \sqrt{c+d x}}{a^2 (a+b x)}-\frac{c \sqrt{c+d x}}{a x (a+b x)}-\frac{(c (4 b c-3 a d)) \operatorname{Subst}\left (\int \frac{1}{-\frac{c}{d}+\frac{x^2}{d}} \, dx,x,\sqrt{c+d x}\right )}{a^3 d}+\frac{((b c-a d) (4 b c-a d)) \operatorname{Subst}\left (\int \frac{1}{a-\frac{b c}{d}+\frac{b x^2}{d}} \, dx,x,\sqrt{c+d x}\right )}{a^3 d}\\ &=-\frac{(2 b c-a d) \sqrt{c+d x}}{a^2 (a+b x)}-\frac{c \sqrt{c+d x}}{a x (a+b x)}+\frac{\sqrt{c} (4 b c-3 a d) \tanh ^{-1}\left (\frac{\sqrt{c+d x}}{\sqrt{c}}\right )}{a^3}-\frac{\sqrt{b c-a d} (4 b c-a d) \tanh ^{-1}\left (\frac{\sqrt{b} \sqrt{c+d x}}{\sqrt{b c-a d}}\right )}{a^3 \sqrt{b}}\\ \end{align*}
Mathematica [A] time = 0.206961, size = 127, normalized size = 0.85 \[ \frac{\frac{a \sqrt{c+d x} (-a c+a d x-2 b c x)}{x (a+b x)}+\sqrt{c} (4 b c-3 a d) \tanh ^{-1}\left (\frac{\sqrt{c+d x}}{\sqrt{c}}\right )-\frac{\sqrt{b c-a d} (4 b c-a d) \tanh ^{-1}\left (\frac{\sqrt{b} \sqrt{c+d x}}{\sqrt{b c-a d}}\right )}{\sqrt{b}}}{a^3} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A] time = 0.016, size = 237, normalized size = 1.6 \begin{align*} -{\frac{c}{{a}^{2}x}\sqrt{dx+c}}-3\,{\frac{d\sqrt{c}}{{a}^{2}}{\it Artanh} \left ({\frac{\sqrt{dx+c}}{\sqrt{c}}} \right ) }+4\,{\frac{{c}^{3/2}b}{{a}^{3}}{\it Artanh} \left ({\frac{\sqrt{dx+c}}{\sqrt{c}}} \right ) }+{\frac{{d}^{2}}{a \left ( bdx+ad \right ) }\sqrt{dx+c}}-{\frac{bdc}{{a}^{2} \left ( bdx+ad \right ) }\sqrt{dx+c}}+{\frac{{d}^{2}}{a}\arctan \left ({b\sqrt{dx+c}{\frac{1}{\sqrt{ \left ( ad-bc \right ) b}}}} \right ){\frac{1}{\sqrt{ \left ( ad-bc \right ) b}}}}-5\,{\frac{bdc}{{a}^{2}\sqrt{ \left ( ad-bc \right ) b}}\arctan \left ({\frac{b\sqrt{dx+c}}{\sqrt{ \left ( ad-bc \right ) b}}} \right ) }+4\,{\frac{{b}^{2}{c}^{2}}{{a}^{3}\sqrt{ \left ( ad-bc \right ) b}}\arctan \left ({\frac{b\sqrt{dx+c}}{\sqrt{ \left ( ad-bc \right ) b}}} \right ) } \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F(-2)] time = 0., size = 0, normalized size = 0. \begin{align*} \text{Exception raised: ValueError} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A] time = 3.39628, size = 1679, normalized size = 11.27 \begin{align*} \text{result too large to display} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F(-1)] time = 0., size = 0, normalized size = 0. \begin{align*} \text{Timed out} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A] time = 1.24907, size = 266, normalized size = 1.79 \begin{align*} \frac{{\left (4 \, b^{2} c^{2} - 5 \, a b c d + a^{2} d^{2}\right )} \arctan \left (\frac{\sqrt{d x + c} b}{\sqrt{-b^{2} c + a b d}}\right )}{\sqrt{-b^{2} c + a b d} a^{3}} - \frac{{\left (4 \, b c^{2} - 3 \, a c d\right )} \arctan \left (\frac{\sqrt{d x + c}}{\sqrt{-c}}\right )}{a^{3} \sqrt{-c}} - \frac{2 \,{\left (d x + c\right )}^{\frac{3}{2}} b c d - 2 \, \sqrt{d x + c} b c^{2} d -{\left (d x + c\right )}^{\frac{3}{2}} a d^{2} + 2 \, \sqrt{d x + c} a c d^{2}}{{\left ({\left (d x + c\right )}^{2} b - 2 \,{\left (d x + c\right )} b c + b c^{2} +{\left (d x + c\right )} a d - a c d\right )} a^{2}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]